/* 地图容器 */
#map-container {
    flex: 2;
    position: relative;
    background-color: #e8e0d0;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
}

#world-map {
    display: block;
    background-color: #e8e0d0;
    cursor: move;
}

/* 地图控制按钮 */
#map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#map-controls button {
    width: 40px;
    height: 40px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

#map-controls button:hover {
    background-color: var(--primary-color);
    color: white;
}

#reset-view {
    width: auto !important;
    border-radius: 20px !important;
    font-size: 14px !important;
}

/* 地图图例 */
#map-legend {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid #333;
}

/* 地图标记样式 */
.kingdom-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s;
}

.kingdom-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 10;
}

/* 地形颜色 */
.terrain-plains {
    background-color: #a8c66c;
}

.terrain-mountains {
    background-color: #8b7355;
}

.terrain-forest {
    background-color: #2e8b57;
}

.terrain-desert {
    background-color: #e6c34c;
}

/* 资源点和危险区域标记 */
.resource-point {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 1px solid white;
    transform: translate(-50%, -50%);
}

.danger-zone {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--danger-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: translate(-50%, -50%);
}